home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmMain
- Caption = "NWind main form"
- ClientHeight = 3375
- ClientLeft = 1515
- ClientTop = 1395
- ClientWidth = 7020
- LinkTopic = "Form1"
- ScaleHeight = 3375
- ScaleWidth = 7020
- Begin VB.CommandButton Command1
- Caption = "&Employees"
- Height = 435
- Index = 5
- Left = 1920
- TabIndex = 5
- Top = 2520
- Width = 1155
- End
- Begin VB.CommandButton Command1
- Caption = "C&ustomers"
- Height = 435
- Index = 4
- Left = 1920
- TabIndex = 4
- Top = 1980
- Width = 1155
- End
- Begin VB.CommandButton Command1
- Caption = "&Suppliers"
- Height = 435
- Index = 3
- Left = 1920
- TabIndex = 3
- Top = 1440
- Width = 1155
- End
- Begin VB.CommandButton Command1
- Caption = "&Products"
- Height = 435
- Index = 2
- Left = 600
- TabIndex = 2
- Top = 2520
- Width = 1155
- End
- Begin VB.CommandButton Command1
- Caption = "&Orders"
- Height = 435
- Index = 1
- Left = 600
- TabIndex = 1
- Top = 1980
- Width = 1155
- End
- Begin VB.CommandButton Command1
- Caption = "&Categories"
- Height = 435
- Index = 0
- Left = 600
- TabIndex = 0
- Top = 1440
- Width = 1155
- End
- Begin VB.Frame Frame1
- Caption = "Data tables"
- Height = 1995
- Left = 120
- TabIndex = 6
- Top = 1200
- Width = 3495
- End
- Begin VB.CommandButton Command2
- Caption = "Quarterly Orders"
- Height = 435
- Index = 2
- Left = 4500
- TabIndex = 7
- Top = 2520
- Width = 1875
- End
- Begin VB.CommandButton Command2
- Caption = "Customer Orders"
- Height = 435
- Index = 1
- Left = 4500
- TabIndex = 8
- Top = 1980
- Width = 1875
- End
- Begin VB.CommandButton Command2
- Caption = "Customer phones"
- Height = 435
- Index = 0
- Left = 4500
- TabIndex = 9
- Top = 1440
- Width = 1875
- End
- Begin VB.Frame Frame2
- Caption = "Summary"
- Height = 1995
- Left = 4140
- TabIndex = 10
- Top = 1200
- Width = 2715
- End
- Begin VB.Label Label3
- Caption = "If it is located in another place on your computer, you need to modify property DatabaseName of all Table controls."
- Height = 495
- Left = 120
- TabIndex = 12
- Top = 600
- Width = 6615
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- Caption = "This sample uses database C:\Program Files\DevStudio\VB\Nwind.mdb"
- Height = 195
- Left = 120
- TabIndex = 11
- Top = 240
- Width = 6555
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click(Index As Integer)
- Select Case Index
- Case 0: frmCategories.Show
- Case 1: frmOrders.Show
- Case 2: frmProducts.Show
- Case 3: frmSuppliers.Show
- Case 4: frmCustomers.Show
- Case 5: frmEmployees.Show
- End Select
- End Sub
- Private Sub Command2_Click(Index As Integer)
- Select Case Index
- Case 0: frmCustomerPhones.Show
- Case 1: frmCustomerOrders.Show
- Case 2: frmQuarterlyOrders.Show
- End Select
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- End
- End Sub
-